<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>文件上传</title>
</head>
<body>
<h2>已有文件：</h2>
<p th:each="file : ${files}">
    <img th:src="${file.name}" style="height:80px;"/>，文件名称：<span th:text="${file.name}"></span>
</p>
<hr/>
<form method="post" enctype="multipart/form-data">
    用户ID：<input name="userId" type="text"/>
    <br/>
    头像：<input name="headimg" type="file"/>
    <br/>
    <button type="submit">确定上传</button>
</form>
</body>
</html>